<?php

/*
Process delete Pages (admin_delete_pages.pro.php)
*/

$rank_check = "7";
include "../global.inc.php";

$check = fetch("SELECT id FROM game_pages2 WHERE id = '$delete' AND game = '$game'");

if (!$check[id])
{
	die(header(error("admin_delete_pages.php?game=$game", "That page does not exsist in your game.")));
}
else
{
	mysql_query("DELETE FROM game_pages2 WHERE id = '$delete' AND game = '$game'");
	header("Location: admin_delete_pages.php?game=$game&error=The+page+$check[page_title]+has+been+deleteed!");
}

?>
